import java.text.DecimalFormat;

/**
 * @Author lizhenchao@atguigu.cn
 * @Date 2021/7/7 14:43
 */
public class Demo {
    public static void main(String[] args) {
        DecimalFormat df = new DecimalFormat("0000.00%");
        System.out.println(df.format(1.988));
        System.out.println(df.format(223));
        System.out.println(df.format(21123));
        System.out.println(df.format(0.1));
    }
}
